package cn.xudy.group.Controller;

import cn.xudy.group.Service.SingletonService;
import cn.xudy.group.Singleton.Singleton;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Ulegal on 2017/11/29.
 */
@RestController
public class SingletonController {

    @Autowired
    SingletonService singletonService;

    @Autowired
    Singleton singleton;

    @GetMapping(value = "/singleton")
     public String Singleton(){

        singletonService.SingletonAction();



         return "Singleton";
     }

}
